import 'package:json_annotation/json_annotation.dart';

part 'deposit.g.dart';

@JsonSerializable()
class Deposit extends Object {
  @JsonKey(name: 'id')
  int id;

  @JsonKey(name: 'money')
  String money;

  @JsonKey(name: 'state')
  String state;

  @JsonKey(name: 'created_at')
  String createdAt;

  Deposit(
    this.id,
    this.money,
    this.state,
    this.createdAt,
  );

  factory Deposit.fromJson(Map<String, dynamic> srcJson) =>
      _$DepositFromJson(srcJson);
}
